import request from '@/utils/request'

export function getList(input) {
  return request({
    url: '/api/user/getlist',
    method: 'post',
    data: { input }
  })
}
export function getDetail(params) {
  var input = {
    ID: params
  }
  return request({
    url: '/api/user/Get',
    method: 'post',
    data: { input }
  })
}
export function editUser(input) {
  return request({
    url: '/api/user/ChangeUserInfo',
    method: 'post',
    data: { input }
  })
}
export function FrozenUser(ID) {
  var input = {
    ID: ID
  }
  return request({
    url: '/api/user/ChangeUserState',
    method: 'post',
    data: { input }
  })
}

export function createUser(input) {
  return request({
    url: '/api/user/CreateUserInfo',
    method: 'post',
    data: { input }
  })
}

export function deleteUser(ID) {
  var input = {
    ID: ID
  }
  return request({
    url: '/api/user/LogicDelete',
    method: 'post',
    data: { input }
  })
}

export function chooseRole() {
  var input = {

  }
  return request({
    url: '/api/Role/GetRoleListAll',
    method: 'post',
    data: { input }
  })
}
